STEP 3: Nice! Before we start writing our function, we should call it inside main().

  • In , drag Call w/ Parameter into Variable inside main(). It should be indented 4 spaces.
  • Change the variable my_var to data. This will contain a list of the users' name and score.
  • Then, change my_function to get_high_scores to call the function we just created.
  • Change my_parameter to "high_score_python3.csv". This is a pre-made file we're giving to you.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)